System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
#!/usr/bin/python | |
""" | |
Simple tool to extract local users and passwords from most Huawei routers/firewalls config files. | |
Will extract plain-text passwords and crypted credentials. Huawei config files use DES encryption with | |
a known key. Using this information, the script will decrypt credentials found in the config file. | |
Author: Etienne Stalmans (etienne@sensepost.com) | |
Version: 1.0 (12/01/2014) | |
""" | |
from Crypto.Cipher import DES |
#NoEnv | |
SetBatchLines, -1 | |
#MaxHotkeysPerInterval 200 | |
#Include <VA> | |
; Create the slider window | |
Gui, Add, Progress, w100 h20 x0 y0 Range0-100 vVolSlider, 0 | |
Gui, Add, Text, w100 h20 x0 y0 vVolText BackgroundTrans Center +0x200, 0 | |
Gui, +AlwaysOnTop -Caption +ToolWindow | |
Gui, Show, Hide w100 h20 x0 y0, Volume |
from django.test.client import RequestFactory | |
from django.http import HttpResponse | |
from django.db import transaction, DatabaseError | |
from django.db.models.sql.compiler import SQLCompiler | |
from django.utils import timezone | |
from silk.collector import DataCollector | |
from silk.config import SilkyConfig | |
from silk.model_factory import RequestModelFactory, ResponseModelFactory | |
from silk.profiling.profiler import silk_meta_profiler |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
# FastAPI. | |
async def stream_json_list(items): | |
for item in items: | |
yield item | |
await asyncio.sleep(4.0) # To demonstrate, visibly, the successful implementation. | |
async def get_media_metadata(tags: Optional[Set[str]] = Query(None, | |
description="Tags to filter on")): |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
LWin:: | |
Input, x, L1 ; Catches key after winkey | |
if (ErrorLevel = "NewInput") ; If catching was interrupted | |
{ | |
Send #+r ; Set this to your powertoys run shortcut |
Настраиваем подключение к впн Устанавливайте только Stable версии приложений!
Подробнее про клиенты и настройку можно почитать по этой ссылке
#!/bin/bash | |
# This script is used by Nagios to post alerts into a Slack channel | |
# using the Incoming WebHooks integration. Create the channel, botname | |
# and integration first and then add this notification script in your | |
# Nagios configuration. | |
# | |
# All variables that start with NAGIOS_ are provided by Nagios as | |
# environment variables when an notification is generated. | |
# A list of the env variables is available here: |
This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.
Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.
You will find most of this information pulled from the Arch Wiki and other resources linked thereof.
Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX
with /dev/sdX
or your device as needed.
import Foundation | |
extension Date { | |
func toString(format: String = "yyyy-MM-dd") -> String { | |
let formatter = DateFormatter() | |
formatter.dateStyle = .short | |
formatter.dateFormat = format | |
return formatter.string(from: self) | |
} |